package com.hanxiaozhang.system.service;

import com.hanxiaozhang.result.Result;
import com.hanxiaozhang.system.dto.DeptDTO;

import java.util.List;
import java.util.Map;

/**
 * 部门表
 * 
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-03-21
 */
public interface DeptService {

	DeptDTO get(Long deptId);
	
	List<DeptDTO> list(Map<String, Object> map);
	
	int save(DeptDTO dept);
	
	int update(DeptDTO dept);

	Result remove(Long deptId, Long parentId);

	Result batchRemove(Long[] deptIds , Long[] parentIds);

}
